projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
85fcd50
)
wayland: Handle request for selection atoms when there's no selection
author
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 17 Jan 2012 16:10:30 +0000
(11:10 -0500)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Tue, 17 Jan 2012 16:10:59 +0000
(11:10 -0500)
gdk/wayland/gdkdevice-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdkdevice-wayland.c
b/gdk/wayland/gdkdevice-wayland.c
index 09ec304355f450e2f16cde108ee38736c3d4a1f7..a749c72d2976d0d3aed8c7855d760dc0137ca0ad 100644
(file)
--- a/
gdk/wayland/gdkdevice-wayland.c
+++ b/
gdk/wayland/gdkdevice-wayland.c
@@
-1019,7
+1019,7
@@
gdk_wayland_device_get_selection_type_atoms (GdkDevice *gdk_device,
device = GDK_DEVICE_CORE (gdk_device)->device;
- if (device->selection_offer->types->len == 0)
+ if (
!device->selection_offer ||
device->selection_offer->types->len == 0)
{
*atoms_out = NULL;
return 0;